/*
 *  node.cpp
 *  
 *
 *  Created by Brian Bilbo on 12/03/09.
 *
 */

#define INT_MAX 1000

#include "node.h"
#include "edge.h"

Node::Node()
: id('a'), previous(0), distanceFromStart(INT_MAX), robberFlag(false), copsFlag(false)
{

}

Node::Node(int _row, int _col)
: row(_row), col(_col), robberFlag(false), copsFlag(false)
{
}

Node::Node(char id)
: id(id), previous(0),	distanceFromStart(INT_MAX)
{
	
}

bool Node::checkConnected()
{
 if (westEdge != NULL || northEdge != NULL || eastEdge != NULL || southEdge != NULL)
	return true;
 else
	return false;
}